const express = require('express');
const area = require('../data/data_arer');
const db = require('../db/index');
const Student = require('../models/students');
const router = new express.Router();
router.get('/student/arer',(req,res)=>{
    res.send(arer);
})
router.post('/student_info',async(req,res)=>{
    console.log(req.body);
    await db;
    const result = Student.create(req.body);
    console.log(result);
    res.send('学生信息提交成功');
})
module.exports = router;